﻿using System;
using System.Linq;
using System.IO;
using System.IO.IsolatedStorage;
using System.Collections.Generic;
using Microsoft.LightSwitch;
using Microsoft.LightSwitch.Framework.Client;
using Microsoft.LightSwitch.Presentation;
using Microsoft.LightSwitch.Presentation.Extensions;
namespace LightSwitchApplication
{
    public partial class CurrentProductList
    {
        partial void ProductCount_Execute()
        {
            // Write your code here.
            String count = this.ProductsByCategory.Count.ToString();
            this.ShowMessageBox("There are " + count + " products in this category.", "Category Count", MessageBoxOption.Ok);
        }
    }
}
